package com.turbo.cloud.contract.powerjob.processors;

import org.springframework.stereotype.Component;
import tech.powerjob.worker.core.processor.ProcessResult;
import tech.powerjob.worker.core.processor.TaskContext;
import tech.powerjob.worker.core.processor.sdk.MapProcessor;

/**
 * Map处理器 示例
 *
 * @author tjq
 * @since 2020/4/18
 */
@Component
public class MapProcessorDemo implements MapProcessor {

    @Override
    public ProcessResult process(TaskContext context) throws Exception {
        log.info("============== MapProcessorDemo#process ==============");
        return new ProcessResult(true, "RESULT: 成功");
    }
}
